package net.zjitc.service;

import net.zjitc.domain.Product;
import net.zjitc.utils.PageBean;

import java.util.List;

/**
 * Created by rj1502 on 2017/10/23.
 */
public interface ProductService {
    List<Product> findAll();

    int insert(Product product);

    Product findById(int pid);

    int update(Product p);

    List<Product> findByCondition(String condition);

    PageBean<Product> findPage(int currentPage, int pageSize);
}
